<template>
  <div class="err404">
           <a-button @click="goBack" type="danger"> 您暂无体验体验权限,点击返回...</a-button>
  </div>
</template>  
<script>
import {useRouter} from 'vue-router'
import {onMounted} from 'vue'
 export default{
     setup(){
         const router = useRouter();
         const goBack=()=>{
             router.go(-1);
         }
         onMounted(()=>{
             if(!sessionStorage.getItem('yunToken')){
                  sessionStorage.removeItem('leftTabPath')
                 router.push('/login');
             }
         })
         return {
             goBack
         }

     } 
 }
</script>    
<style lang="less" scoped>
.err404{
    width: 100vw;
    height: 100vh;
    background: #f1f1f1;
    cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>